#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	int n;
	while(cin>>n)
	{
		int nn=n;
		double avg=0;
		int jishu=0;
		double input;
		while(n--)
		{
			cin>>input;
			if(input<0) jishu++;
			else if(input>0) 
			{
				avg+=input;
			}
			else ;
		}
		cout<<"avg="<<avg<<endl;
		cout<<"nn-jishu="<<nn-jishu<<endl;
		cout<<jishu<<" "<<setiosflags(ios::fixed)<<setprecision(1)<<avg/(double)(nn-jishu)<<endl;
	}
} 
